<div id="header">
	<table >
		<tr>
			<td width='600' id='header_title'>
				<h1>Deer Valley Library</h1>
			</td>
			<td>
				<?php if(isset($_SESSION['name'])) { echo "Welcome, <a href='profile.php'>" . $_SESSION['name'] . "</a><br />" ?>
				<a href='actions/logout.php'>logout</a>
				<?php } else { ?>
				<h3>Login:</h3>
				<form action='actions/login.php' method='POST'><table>
					<tr><td>Email: </td><td><input type="text" name="email" /></td></tr>
					<tr><td>Password: </td><td><input type="password" name="password" /></td></tr>
					<tr><td>Employee? <input type="checkbox" name="admin" /></td><td><input type="submit" value="Login" /></td></tr>
					<tr><td colspan='2'>
					<?php if (isset($_GET['err'])) echo "<div id='err'>" . $_GET['err'] . "</div></td></tr>" ?>
				</table></form>
				<?php } ?>
			</td>
		</tr>
	</table>
</div> <!-- end #header -->

